package org.eclipse.swt.snippets;
enum Level {
    TRACE(1), DEBUG(2), INFO(3), WARN(4), ERROR(5);

    private int x;

    private Level(int x) {
        this.x = x;
    }

    public boolean isHigherThan(Level l) {
        return x >= l.x;
    }
}